# encoding: utf-8

class ApsUploader < CarrierWave::Uploader::Base

  include CarrierWave::MiniMagick
  storage :file

  def store_dir
    "uploads/aps/#{mounted_as}/#{model.id}"
  end

  def default_url
    ActionController::Base.helpers.asset_path([version_name, "default-people.jpg"].compact.join('_'))
  end

  process :resize_to_limit => [1920, nil]

  def extension_white_list
    %w(jpg jpeg gif png)
  end

end
